#include<iostream>
#include"DoubleLinkedList.h"
#include<time.h>

int main()
{
    std::cout<<"program start"<<std::endl;
    List<int> list; 
    /*list.insert(1);
    list.insert(2);
    list.insert(3);
    list.insert(4);
    list.insert(5);*/
    list.push_back(1);
    list.push_back(2);
    list.push_back(3);
    list.push_back(4);
    list.push_back(5);
    std::cout <<list.back()<<std::endl ;
    list.printlist();
    List<int>::iterator ite = find(list,5);
    std::cout <<*ite<<std::endl;
    list.erase(ite);
    //list.back();   
    
    List<int>::iterator ite2 = find(list,5);
    //std::cout <<*ite2<<std::endl;
    

    return 0;
}


